package com.company.service;

import com.company.Task2;

public class AddClass extends Thread {
    @Override
    public synchronized void run() {
        Task2.i++;
        System.out.println("加一：" + Task2.i);
    }
}
